//开关标记
import { OPENAPPLOADING, CLOSEAPPLOADING } from "@/utils/axios";
const initState = {
  loading: false
};

const AppReducer = (state = initState, action) => {
  switch (action.type) {
    case OPENAPPLOADING: {
      return { loading: true };
    }
    case CLOSEAPPLOADING: {
      return { loading: false };
    }
    default: {
      return state;
    }
  }
};
export { AppReducer };
